# eric7.Sessions.CrashedSessionsSelectionDialog

Module implementing a dialog to show a list of existing crash session files.

### Global Attributes

None

### Classes

CrashedSessionsSelectionDialog | Class implementing a dialog to show a list of existing crash session files.

### Functions

None

## CrashedSessionsSelectionDialog

Class implementing a dialog to show a list of existing crash session files.

### Derived from

QDialog, Ui_CrashedSessionsSelectionDialog

### Class Attributes

None

### Class Methods

None

### Methods

CrashedSessionsSelectionDialog | Constructor
__addSessionFileEntry | Private method to read the given session file and add a list entry for it.
__updateButtonStates | Private method to update the enabled state of the buttons.
getSelectedCrashSession | Public method to get the selected crash session file name.
getSelectedCrashSessions | Public method to get the selected crash session file names.
on_removeButton_clicked | Private slot to remove the selected crash session files.

### Static Methods

None

#### CrashedSessionsSelectionDialog (Constructor)

CrashedSessionsSelectionDialog(sessionFiles, deleteMode=False, parent=None)

Constructor

sessionFiles (list of str)
  list of crash session file names
deleteMode (bool (optional))
  flag indicating the delete mode (defaults to False)
parent (QWidget (optional))
  reference to the parent widget (defaults to None)

#### CrashedSessionsSelectionDialog.__addSessionFileEntry

__addSessionFileEntry(sessionFile)

Private method to read the given session file and add a list entry for it.

sessionFile (str)
  file name of the session to be read

#### CrashedSessionsSelectionDialog.__updateButtonStates

__updateButtonStates()

Private method to update the enabled state of the buttons.

#### CrashedSessionsSelectionDialog.getSelectedCrashSession

getSelectedCrashSession()

Public method to get the selected crash session file name.

Return:
  file name of the selected crash session

Return Type:
  str

#### CrashedSessionsSelectionDialog.getSelectedCrashSessions

getSelectedCrashSessions()

Public method to get the selected crash session file names.

Return:
  file names of the selected crash sessions

Return Type:
  list of str

#### CrashedSessionsSelectionDialog.on_removeButton_clicked

on_removeButton_clicked()

Private slot to remove the selected crash session files.

Up